stylecontext: Set state flags on widget paths
authorBenjamin Otte <otte@redhat.com>
Fri, 18 Jul 2014 18:12:39 +0000 (20:12 +0200)
committerBenjamin Otte <otte@redhat.com>
Sat, 19 Jul 2014 21:42:39 +0000 (23:42 +0200)
Set the widget path state flags with the state flags of the style
context.

We do not update the state flags but replace the previous one because we
want to be able to have save()/restore() unset state flags.

gtk/gtkstylecontext.c

index fd804b291ecf2d292f1f7a895fa50b9b44ea1fba..3d1e78876e3f3fee56a219dee1c05c5a23db5c56 100644 (file)
@@ -747,6 +747,10 @@ G_GNUC_END_IGNORE_DEPRECATIONS
                                       g_quark_to_string (quark));
     }
 
+  /* Set widget state */
+  gtk_widget_path_iter_set_state (path, pos,
+                                  gtk_widget_path_iter_get_state (path, pos) | info->state_flags);
+
   return path;
 }